# history/models.py
from django.db import models


class HistoryRecord(models.Model):
    id = models.AutoField(primary_key=True)
    name = models.CharField(max_length=255)
    record_time = models.DateTimeField()
    path = models.CharField(max_length=1024)

    class Meta:
        db_table = 'history'  # 指定已有表名
        managed = False  # ❗重要：不让 Django 管理表（不会迁移/改结构）
